<form name="editForm" role="form" novalidate (ngSubmit)="save()" #editForm="ngForm">

    <div class="modal-header">
        <h4 class="modal-title" id="myBookTypeLabel" jhiTranslate="studyng6App.bookType.home.createOrEditLabel">Create or edit a Book Type</h4>
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                (click)="clear()">&times;</button>
    </div>
    <div class="modal-body">
        <jhi-alert-error></jhi-alert-error>
        <div class="form-group" [hidden]="!bookType.id">
            <label for="id" jhiTranslate="global.field.id">ID</label>
            <input type="text" class="form-control" id="id" name="id"
                   [(ngModel)]="bookType.id" readonly />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="studyng6App.bookType.type" for="field_type">Type</label>
            <input type="text" class="form-control" name="type" id="field_type"
                [(ngModel)]="bookType.type" />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="studyng6App.bookType.pType" for="field_pType">P Type</label>
            <input type="text" class="form-control" name="pType" id="field_pType"
                [(ngModel)]="bookType.pType" />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="studyng6App.bookType.content" for="field_content">Content</label>
            <input type="text" class="form-control" name="content" id="field_content"
                [(ngModel)]="bookType.content" />
        </div>

    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal" (click)="clear()">
            <span class="fa fa-ban"></span>&nbsp;<span jhiTranslate="entity.action.cancel">Cancel</span>
        </button>
        <button type="submit" [disabled]="editForm.form.invalid || isSaving" class="btn btn-primary">
            <span class="fa fa-save"></span>&nbsp;<span jhiTranslate="entity.action.save">Save</span>
        </button>
    </div>
</form>
